$(document).ready(function() {
	showLoading();
	$('title', parent.document).html($('title').text());
	setBaseUrl();
	addTitle("manufacturerSave");
	searchManufacturer();
})

function searchManufacturer(){
	createComBody("detailOneBody", manufacturerTable, undefined, 1);
	setTimeout(hideLoading, 500);
}

function saveManufacturerInfo(data){
     var result = data && data.result;
     if (result == "Success") {
    	 showMessge(messageContent["Insert.Success"], undefined, goback);
     } else if (result == "NotFound"){
    	 showMessge(messageContent["Insert.Failed"]);
     } else if (result == "UserIDNoNull"){
         showMessge(messageContent["UserIDNoNull"]);
     } else {
    	 showMessge(messageContent["Insert.Error"]);
     }
}
function confirm(){
	return checkForm("saveForm", manufacturerTable);
}
function goback() {
	window.parent.skipMenu('vehicle/manufacturer', 'drownDown3', '', 'carPage', 'manufacturer');
}